package com.itheima.d;

public class Test {
    public static void main(String[] args) {
        Student s1=new Student("小明","男",18);
        Student s2=new Student("小红","女",16);
        Student s3=new Student("小红","女",16);
        //打印对象属性值
        System.out.println(s1);
        System.out.println(s2);

        if (s2.equals(s3)){
            System.out.println("s2和s3这两个学生对象是相同的");
        }else{
            System.out.println("s2和s3这两个学生对象是不相同的");

        }
    }
}
